package com.yn.service.zy;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yn.common.model.zy.TCarManageDO;
import com.yn.common.page.BasePage;
import com.yn.common.request.sc.CarFleetManageRequest;
import com.yn.common.request.sc.CarManageRequest;
import com.yn.common.vo.MyRecord;
import com.yn.service.zy.model.dto.TCarManageDTO;
import com.yn.service.zy.model.query.TCarManageQuery;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface TCarManageService extends IService<TCarManageDO> {
    /**
     * 分页获取车辆-司机信息
     * @param query
     * @param basePage
     * @return
     */
    IPage<TCarManageDTO> listPage(TCarManageQuery query, BasePage basePage);

    /**
     * 获取车辆-司机详情
     * @param id
     * @return
     */
    TCarManageDTO getInfo(Integer id);

    /**
     * 批量审核
     * @param carIds
     * @param auditStatus
     */
    void batchAudit(List<Integer> carIds, Integer auditStatus);

    /**
     * 添加司机
     * @param request
     * @param fleetManageId
     */
    void saveDriver(CarManageRequest request, Integer fleetManageId);

    void saveDriver2OtherFleet(Integer fleetManageId);


    HashMap<Integer,String> getFleetName();
}

